<?php
/**
 * Created by PhpStorm.
 * User: EDZ
 * Date: 2020/6/22
 * Time: 11:01
 */
include "autoload.php";

use \DesignPatterns\Structural\Adaptor\Book;
use \DesignPatterns\Structural\Adaptor\Kindle;
use \DesignPatterns\Structural\Adaptor\EBookAdaptor;

$book = new Book();
$book->open();
$book->turnPage();
echo $book->getPage().PHP_EOL;

$kindle = new Kindle();
$book = new EBookAdaptor($kindle);

$book->open();
$book->turnPage();
echo $book->getPage().PHP_EOL;
